(function () {
    window.argumentsToObject = function (args) {
        var object = {};
        for (var i = 0; i < args.length; i++) {
            var obj = args[0];
            for (var key in obj) {
                object[key] = obj[key];
            }
        }
        return object;
    };
    window.getCurTimestamp = function () {
        return Math.round((new Date()).getTime() / 1000);
    };
    window.getCurTimestampString = function (format) {
        format = format || "yyyy-mm-dd HH:MM:ss";
        var date = new Date(parseInt(window.getCurTimestamp()) * 1000);
        return dateFormat(date, format);
    };
    window.log = function(out){
        console.log(out);
    }
})();